package jsu.xxy.coffee3.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jsu.xxy.coffee3.config.AliPay;
import jsu.xxy.coffee3.domain.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
* @author 张从轩
* @description 针对表【orderform(订单表)】的数据库操作Service
* @createDate 2023-06-03 06:27:54
*/

public interface OrderformService extends IService<Orderform> {

    List<Ordered> getOrderedForm(Integer pageNo, Integer pageSize);

    List<Ordered> getOrderingForm(int pageNo, int pageSize);

    List<Ordered> getOrderByCid(Integer cid);

    boolean changStatue(int oid);

    List<Ordered> getOrderedAForm(int oid);

    int addOrder(List<Orders> orders, Integer totalnum, Double total, String remarks, Integer cid);

    List<picture> getSum();

    Page<Ordered> getOrdered(Integer pageNo, Integer pageSize);

    List<OrderIdAndProduct> getMore(int id);

    Page<Ordered> getOrdering(Integer pageNo, Integer pageSize);


    String upload(MultipartFile file) throws IOException;

    void deleteOrder(Integer integer);

    void pay(AliPay aliPay, HttpServletResponse httpResponse);

    String payNotify(HttpServletRequest request);
}
